package com.common.page;


import java.io.Serializable;

/**
 * @author
 * @Desc
 * @date 2021/6/30 8:28
 */
public class PageForm implements Serializable {

    /**
     * 当前页
     */
    private Integer pageNum = 1;
    /**
     * 分页数量
     */
    private Integer pageSize = 20;

    public PageForm() {}

    public PageForm(Integer pageNum, Integer pageSize) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }

    public int getPageNum() {
        if (null == this.pageNum) {
            return 1;
        } else {
            return pageNum;
        }
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

}

